<!DOCTYPE html>
<html lang="en">
<!--header-->
<include file="Public:header"/>
<!--header-->

<section id="main-content">
    <section class="wrapper">
        <!--<iframe href="" frameborder="0" height="100%" width="100%" name="wrapper"></iframe>-->
        <h3><i class="fa fa-angle-right"></i> 用户管理</h3>
        <div class="row mt">
            <div class="col-md-12">
                <div class="content-panel">
                    <table class="table table-striped table-advance table-hover">
                        <h4><i class="fa fa-angle-right"></i> 用户列表</h4>
                        <hr>
                        <thead>
                        <form class="form-inline" role="form" action="{:U('index')}" method="post">
                            <select class="btn btn-theme04" name="sou"  style="width: 100px;float: left;margin-left: 20px;">
                                <option value="1">姓名</option>
                                <option value="2">电话</option>
                                <option value="3">地址</option>
                            </select>
                            <div class="form-group" style="width: 300px;float: left;overflow: hidden;margin-left: 10px;margin-right: 10px">
                                <input type="text" name="content" class="form-control"  placeholder="请输入关键字" style="float: left;text-align: center">
                            </div>
                            <input type="submit" class="btn btn-theme" value="搜索" style="float: left" />
                        </form>
                        <tr>
                            <th>编号</th>
                            <th>头像</th>
                            <!--<th>性别</th>-->
                            <th>微信昵称</th>
                            <!--<th>姓名</th>
                            <th>电话</th>
                            <th>地址</th>
                            <th>邮箱</th>-->
                            <th>积分</th>
                            <!--<th>拥有身份</th>
                            <th>当前身份</th>-->
                            <!--<th>修改时间</th>-->
                            <th>创建时间</th>
                            <!--<th>操作</th>-->
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list" item="v">
                            <tr>
                                <td>{$v.id}</td>
                                <td>
                                    <if condition = "$v['headimgurl'] == NULL">
                                        <a target="_blank"  class="fancybox" href="__PUBLIC__/img/wutu.png">
                                            <img class="img-responsive" src="__PUBLIC__/img/wutu.png" style="width: 60px;height: 60px;border-radius: 50%">
                                        </a>
                                        <else/>
                                        <a target="_blank" class="fancybox" href="{$v.headimgurl}">
                                            <img class="img-responsive" src="{$v.headimgurl}" style="width: 60px;height: 60px;border-radius: 50%">
                                        </a>
                                    </if>
                                </td>
                               <!-- <td>
                                    <if condition="$v.sex == 0">
                                        未知
                                    </if>
                                    <if condition="$v.sex == 1">
                                        男
                                    </if>
                                    <if condition="$v.sex == 2">
                                        女
                                    </if>
                                </td>-->
                                <td>{$v.nickname}</td>
                                <!--<td>{$v.name}</td>
                                <td>{$v.phone}</td>
                                <td>{$v.ads}</td>
                                <td>{$v.email}</td>-->
                                <td>{$v.covers}</td>
                               <!-- <td>
                                   {$v.shen_fen}
                                </td>
                                <td>
                                    <if condition="$v.qie == 1">
                                        普通用户
                                    </if>
                                    <if condition="$v.qie == 2">
                                        商家
                                    </if>
                                    <if condition="$v.qie == 3">
                                        雇主
                                    </if>
                                    <if condition="$v.qie == 4">
                                        家服人员
                                    </if>
                                </td>-->
                                <!--<td><if condition="$v['up_at'] != NULL">{$v.up_at|date="Y-m-d H:i:s",###}<else/>无</if></td>-->
                                <td>{$v.create_at|date="Y-m-d H:i",###}</td>
                                <td>
                                    <!--<a title="查看详情"      href="{:U('info',array('id'=>$v['id']))}" class="btn btn-success btn-xs"><i class="fa fa-check">
                                    </i></a>
                                    <a title="修改用户信息"  href="{:U('info_form',array('id'=>$v['id']))}" class="btn btn-primary btn-xs"><i class="fa fa-pencil">
                                    </i></a>-->
                                    <!--<if condition="QUAN eq 2">
                                    <a href="{:U('form',array('id'=>$v['id']))}" class="btn btn-success btn-xs" title="积分核销"><i class="fa fa-check"></i></a>
                                    </if>-->
                                    <!--<button onclick="del({$v.id},1)" class="btn btn-danger btn-xs" title="删除"><i class="fa fa-trash-o"></i></button>-->
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    <form action="{:U('index')}" method="post" name="frmss">
                        <div  style="margin: 0 auto;width: 800px;margin-bottom: 20px">
                            <if condition="$currpage == 1">
                                    <span class="badge" style="font-size: 15px">
                                        首页
                                    </span>
                                <span class="badge" style="font-size: 15px">
                                        上一页
                                    </span>
                                <else/>
                                <span class="badge" style="font-size: 15px">
                                        <a href="{:U('index',array('currpage'=>1))}" style="color: #ffffff">首页</a>
                                    </span>
                                <span class="badge" style="font-size: 15px">
                                        <a href="{:U('index',array('currpage'=>$currpage-1))}" style="color: #ffffff">上一页</a>
                                    </span>
                            </if>
                            <if condition="$currpage == $totalpage">
                                    <span class="badge" style="font-size: 15px">
                                        下一页
                                    </span>
                                <span class="badge" style="font-size: 15px">
                                        尾页
                                    </span>
                                <else/>
                                <span class="badge" style="font-size: 15px">
                                        <a href="{:U('index',array('currpage'=>$currpage+1))}" style="color: #ffffff">下一页</a>
                                    </span>
                                <span class="badge" style="font-size: 15px">
                                        <a href="{:U('index',array('currpage'=>$totalpage))}" style="color: #ffffff">尾页</a>
                                    </span>
                            </if>
                            <span class="badge" style="font-size: 15px">
                                    当前第 {$currpage} 页；共 {$totalpage} 页
                                </span>
                            <span class="badge" style="font-size: 15px">
                                    跳转到
                                <input type="text" name="currpage" style="width: 50px;height:18px;border-radius: 5px;color: black;text-align: center;margin-left: 4px;margin-right: 8px">页
                                <button id="tiao" style="color: #888888;width: 50px;height:18px;border-radius: 8px;margin: auto 0;border: none">确定</button>
                            </span>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</section>

</section>
<!--footer-->
<include file="Public:footer"/>
<!--footer-->
<script type="text/javascript" src="__PUBLIC__/ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
    $(function() {
        //    fancybox
        jQuery(".fancybox").fancybox();
    });
</script>
<script>
    //custom select box
    $(function(){
        $('select.styled').customSelect();
    });
    //跳转页数检测
    $("#tiao").click(function () {
        if(document.frmss.currpage.value == "" || document.frmss.currpage.value > {$totalpage} || document.frmss.currpage.value < 1){
            return false;
        }
    })

</script>

</body>
</html>
